
const initState = {
  MenuList:[]
}

function homeReducer(state=initState,action) {
  state = JSON.parse(JSON.stringify(state));
  const { type , payload } = action;
  switch (type) {
    case 'MenuList':
      state.MenuList = payload;
      break;
  }
  return state;
}

export default homeReducer;